<?php
    $tblProCat  = new Zendvn_Models_ProItem();
    $proCat       = $tblProCat->listItem(null, array('task'=>'public-category-product'));
    
	$ssFilter = $view->arrParam['ssFilter'];
	$langTmp = $ssFilter['lang'];
	if($langTmp == ''){
		$langTmp = 'vi';
	}else{
		$langTmp = $ssFilter['lang'];
	}
	
	$page = 1;
	
	$lang = $view->arrParam['lang'];
    if(empty($lang)){
    	$lang = 'vi';
    }else{
    	$lang = $view->arrParam['lang'];
    }
?>
<div class="header width-100">
    <div class="group-pro01">
          <div class="group-pro01-title">
            <p>Danh mục sản phẩm</p>
          </div>
          <div class="group-pro01-box">
                <div class="box-menu float-left width-100">
                      <ul>
                          <?php
                          foreach($proCat as $pc){
                              $pcName   = $pc['name'];
                              $pcAlias  = $pc['alias'];
                              $tcat     = $pc['id'];
                              $urlOptions = array('module'=>'products',
                                                'controller'=>'index',
                                                'action'=>'category',
                                                'title'=>$pcAlias,
                                                'tcat'=>$tcat,
                                                'lang'=>$lang,
                                                'page'=>$page);
                               $linkProduct = $this->view->url($urlOptions,'products-category');
                              
                          ?>
                          <a href="<?php echo $linkProduct; ?>">
                              <li><?php echo $pcName; ?></li></a>
                          <?php } ?>
                      </ul>
                      <div class="clear"></div>
                </div>
                <div class="clear"></div>
            </div>
    <div class="clear"></div>
    </div>
</div> 